<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8"/>
    <title>Test Report</title>
    <style>body {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 12px;
	min-width: 1200px;
	color: #999;
}
h2 {
	font-size: 16px;
	color: black;
}

p {
    color: black;
}

a {
	color: #999;
}

table {
	border-collapse: collapse;
}

/******************************
 * SUMMARY INFORMATION
 ******************************/

#environment td {
	padding: 5px;
	border: 1px solid #E6E6E6;
}

#environment tr:nth-child(odd) {
	background-color: #f6f6f6;
}

/******************************
 * TEST RESULT COLORS
 ******************************/
span.passed, .passed .col-result {
	color: green;
}
span.skipped, span.xfailed, span.rerun, .skipped .col-result, .xfailed .col-result, .rerun .col-result {
	color: orange;
}
span.error, span.failed, span.xpassed, .error .col-result, .failed .col-result, .xpassed .col-result  {
	color: red;
}


/******************************
 * RESULTS TABLE
 *
 * 1. Table Layout
 * 2. Extra
 * 3. Sorting items
 *
 ******************************/

/*------------------
 * 1. Table Layout
 *------------------*/

#results-table {
	border: 1px solid #e6e6e6;
	color: #999;
	font-size: 12px;
	width: 100%
}

#results-table th, #results-table td {
	padding: 5px;
	border: 1px solid #E6E6E6;
	text-align: left
}
#results-table th {
	font-weight: bold
}

/*------------------
 * 2. Extra
 *------------------*/

.log:only-child {
	height: inherit
}
.log {
	background-color: #e6e6e6;
	border: 1px solid #e6e6e6;
	color: black;
	display: block;
	font-family: "Courier New", Courier, monospace;
	height: 230px;
	overflow-y: scroll;
	padding: 5px;
	white-space: pre-wrap
}
div.image {
	border: 1px solid #e6e6e6;
	float: right;
	height: 240px;
	margin-left: 5px;
	overflow: hidden;
	width: 320px
}
div.image img {
	width: 320px
}
.collapsed {
	display: none;
}
.expander::after {
	content: " (show details)";
	color: #BBB;
	font-style: italic;
	cursor: pointer;
}
.collapser::after {
	content: " (hide details)";
	color: #BBB;
	font-style: italic;
	cursor: pointer;
}

/*------------------
 * 3. Sorting items
 *------------------*/
.sortable {
	cursor: pointer;
}

.sort-icon {
	font-size: 0px;
	float: left;
	margin-right: 5px;
	margin-top: 5px;
	/*triangle*/
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
}

.inactive .sort-icon {
	/*finish triangle*/
	border-top: 8px solid #E6E6E6;
}

.asc.active .sort-icon {
	/*finish triangle*/
	border-bottom: 8px solid #999;
}

.desc.active .sort-icon {
	/*finish triangle*/
	border-top: 8px solid #999;
}
</style></head>
  <body onLoad="init()">
    <script>/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */


function toArray(iter) {
    if (iter === null) {
        return null;
    }
    return Array.prototype.slice.call(iter);
}

function find(selector, elem) {
    if (!elem) {
        elem = document;
    }
    return elem.querySelector(selector);
}

function find_all(selector, elem) {
    if (!elem) {
        elem = document;
    }
    return toArray(elem.querySelectorAll(selector));
}

function sort_column(elem) {
    toggle_sort_states(elem);
    var colIndex = toArray(elem.parentNode.childNodes).indexOf(elem);
    var key;
    if (elem.classList.contains('numeric')) {
        key = key_num;
    } else if (elem.classList.contains('result')) {
        key = key_result;
    } else {
        key = key_alpha;
    }
    sort_table(elem, key(colIndex));
}

function show_all_extras() {
    find_all('.col-result').forEach(show_extras);
}

function hide_all_extras() {
    find_all('.col-result').forEach(hide_extras);
}

function show_extras(colresult_elem) {
    var extras = colresult_elem.parentNode.nextElementSibling;
    var expandcollapse = colresult_elem.firstElementChild;
    extras.classList.remove("collapsed");
    expandcollapse.classList.remove("expander");
    expandcollapse.classList.add("collapser");
}

function hide_extras(colresult_elem) {
    var extras = colresult_elem.parentNode.nextElementSibling;
    var expandcollapse = colresult_elem.firstElementChild;
    extras.classList.add("collapsed");
    expandcollapse.classList.remove("collapser");
    expandcollapse.classList.add("expander");
}

function show_filters() {
    var filter_items = document.getElementsByClassName('filter');
    for (var i = 0; i < filter_items.length; i++)
        filter_items[i].hidden = false;
}

function add_collapse() {
    // Add links for show/hide all
    var resulttable = find('table#results-table');
    var showhideall = document.createElement("p");
    showhideall.innerHTML = '<a href="javascript:show_all_extras()">Show all details</a> / ' +
                            '<a href="javascript:hide_all_extras()">Hide all details</a>';
    resulttable.parentElement.insertBefore(showhideall, resulttable);

    // Add show/hide link to each result
    find_all('.col-result').forEach(function(elem) {
        var extras = elem.parentNode.nextElementSibling;
        var expandcollapse = document.createElement("span");
        if (elem.innerHTML === 'Passed') {
            extras.classList.add("collapsed");
            expandcollapse.classList.add("expander");
        } else {
            expandcollapse.classList.add("collapser");
        }
        elem.appendChild(expandcollapse);

        elem.addEventListener("click", function(event) {
            if (event.currentTarget.parentNode.nextElementSibling.classList.contains("collapsed")) {
                show_extras(event.currentTarget);
            } else {
                hide_extras(event.currentTarget);
            }
        });
    })
}

function init () {
    reset_sort_headers();

    add_collapse();

    show_filters();

    toggle_sort_states(find('.initial-sort'));

    find_all('.sortable').forEach(function(elem) {
        elem.addEventListener("click",
                              function(event) {
                                  sort_column(elem);
                              }, false)
    });

};

function sort_table(clicked, key_func) {
    var rows = find_all('.results-table-row');
    var reversed = !clicked.classList.contains('asc');
    var sorted_rows = sort(rows, key_func, reversed);
    /* Whole table is removed here because browsers acts much slower
     * when appending existing elements.
     */
    var thead = document.getElementById("results-table-head");
    document.getElementById('results-table').remove();
    var parent = document.createElement("table");
    parent.id = "results-table";
    parent.appendChild(thead);
    sorted_rows.forEach(function(elem) {
        parent.appendChild(elem);
    });
    document.getElementsByTagName("BODY")[0].appendChild(parent);
}

function sort(items, key_func, reversed) {
    var sort_array = items.map(function(item, i) {
        return [key_func(item), i];
    });
    var multiplier = reversed ? -1 : 1;

    sort_array.sort(function(a, b) {
        var key_a = a[0];
        var key_b = b[0];
        return multiplier * (key_a >= key_b ? 1 : -1);
    });

    return sort_array.map(function(item) {
        var index = item[1];
        return items[index];
    });
}

function key_alpha(col_index) {
    return function(elem) {
        return elem.childNodes[1].childNodes[col_index].firstChild.data.toLowerCase();
    };
}

function key_num(col_index) {
    return function(elem) {
        return parseFloat(elem.childNodes[1].childNodes[col_index].firstChild.data);
    };
}

function key_result(col_index) {
    return function(elem) {
        var strings = ['Error', 'Failed', 'Rerun', 'XFailed', 'XPassed',
                       'Skipped', 'Passed'];
        return strings.indexOf(elem.childNodes[1].childNodes[col_index].firstChild.data);
    };
}

function reset_sort_headers() {
    find_all('.sort-icon').forEach(function(elem) {
        elem.parentNode.removeChild(elem);
    });
    find_all('.sortable').forEach(function(elem) {
        var icon = document.createElement("div");
        icon.className = "sort-icon";
        icon.textContent = "vvv";
        elem.insertBefore(icon, elem.firstChild);
        elem.classList.remove("desc", "active");
        elem.classList.add("asc", "inactive");
    });
}

function toggle_sort_states(elem) {
    //if active, toggle between asc and desc
    if (elem.classList.contains('active')) {
        elem.classList.toggle('asc');
        elem.classList.toggle('desc');
    }

    //if inactive, reset all other functions and add ascending active
    if (elem.classList.contains('inactive')) {
        reset_sort_headers();
        elem.classList.remove('inactive');
        elem.classList.add('active');
    }
}

function is_all_rows_hidden(value) {
  return value.hidden == false;
}

function filter_table(elem) {
    var outcome_att = "data-test-result";
    var outcome = elem.getAttribute(outcome_att);
    class_outcome = outcome + " results-table-row";
    var outcome_rows = document.getElementsByClassName(class_outcome);

    for(var i = 0; i < outcome_rows.length; i++){
        outcome_rows[i].hidden = !elem.checked;
    }

    var rows = find_all('.results-table-row').filter(is_all_rows_hidden);
    var all_rows_hidden = rows.length == 0 ? true : false;
    var not_found_message = document.getElementById("not-found-message");
    not_found_message.hidden = !all_rows_hidden;
}
</script>
    <p>Report generated on 08-Jan-2019 at 11:00:28 by<a href="https://pypi.python.org/pypi/pytest-html"> pytest-html</a> v1.16.1</p>
    <h2>Environment</h2>
    <table id="environment">
      <tr>
        <td>Packages</td>
        <td>{&apos;pytest&apos;: &apos;3.10.0&apos;, &apos;py&apos;: &apos;1.5.2&apos;, &apos;pluggy&apos;: &apos;0.8.0&apos;}</td></tr>
      <tr>
        <td>Platform</td>
        <td>Darwin-18.0.0-x86_64-i386-64bit</td></tr>
      <tr>
        <td>Plugins</td>
        <td>{&apos;rerunfailures&apos;: &apos;4.2&apos;, &apos;print&apos;: &apos;0.1.0&apos;, &apos;parallel&apos;: &apos;0.0.9&apos;, &apos;metadata&apos;: &apos;1.6.0&apos;, &apos;logger&apos;: &apos;0.3.0&apos;, &apos;html&apos;: &apos;1.16.1&apos;, &apos;annotate&apos;: &apos;1.0.2&apos;}</td></tr>
      <tr>
        <td>Python</td>
        <td>3.6.4</td></tr></table>
    <h2>Summary</h2>
    <p>5 tests ran in 24.91 seconds. </p>
    <p class="filter" hidden="true">(Un)check the boxes to filter the results.</p><input checked="true" class="filter" data-test-result="passed" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="passed">4 passed</span>, <input checked="true" class="filter" data-test-result="skipped" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="skipped">0 skipped</span>, <input checked="true" class="filter" data-test-result="failed" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="failed">1 failed</span>, <input checked="true" class="filter" data-test-result="error" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="error">0 errors</span>, <input checked="true" class="filter" data-test-result="xfailed" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="xfailed">0 expected failures</span>, <input checked="true" class="filter" data-test-result="xpassed" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="xpassed">0 unexpected passes</span>, <input checked="true" class="filter" data-test-result="rerun" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="rerun">3 rerun</span>
    <h2>Results</h2>
    <table id="results-table">
      <thead id="results-table-head">
        <tr>
          <th class="sortable result initial-sort" col="result">Result</th>
          <th class="sortable time" col="time">Time</th>
          <th class="sortable" col="name">Test</th>
          <th>Description</th>
          <th class="sortable numeric" col="duration">Duration</th></tr>
        <tr hidden="true" id="not-found-message">
          <th colspan="5">No results found. Try to check the filters</th></tr></thead>
      <tbody class="failed results-table-row">
        <tr>
          <td class="col-result">Failed</td>
          <td class="col-time">2019-01-08 03:00:18.378159</td>
          <td class="col-name">test_dir/test_baidu.py::TestSearch::()::test_baidu_search_case</td>
          <td> 百度搜索：pytest </td>
          <td class="col-duration">2.28</td></tr>
        <tr>
          <td class="extra" colspan="5">
            <div><div><img src="image/test_baidu.py_TestSearch_()_test_baidu_search_case.png" alt="screenshot" style="width:304px;height:228px;" onclick="window.open(this.src)" align="right"/></div></div>
            <div class="log">self = &lt;test_dir.test_baidu.TestSearch object at 0x106f9f160&gt;<br/>browser = &lt;selenium.webdriver.chrome.webdriver.WebDriver (session=&quot;6c6dbcb178c61f65ab37831826682f88&quot;)&gt;<br/>base_url = &#x27;https://www.baidu.com&#x27;<br/><br/>    def test_baidu_search_case(self, browser, base_url):<br/>        &quot;&quot;&quot; 百度搜索：pytest &quot;&quot;&quot;<br/>        page = BaiduPage(browser)<br/>        page.get(base_url)<br/>        page.search_input.send_keys(&quot;pytest&quot;)<br/>        page.search_button.click()<br/>        sleep(2)<br/>&gt;       assert browser.title == &quot;pytest_百度搜索222&quot;<br/><span class="error">E       AssertionError: assert &#x27;pytest_百度搜索&#x27; == &#x27;pytest_百度搜索222&#x27;</span><br/><span class="error">E         - pytest_百度搜索</span><br/><span class="error">E         + pytest_百度搜索222</span><br/><span class="error">E         ?            +++</span><br/><br/>test_dir/test_baidu.py:19: AssertionError<br/></div></td></tr></tbody>
      <tbody class="rerun results-table-row">
        <tr>
          <td class="col-result">Rerun</td>
          <td class="col-time">2019-01-08 03:00:09.526247</td>
          <td class="col-name">test_dir/test_baidu.py::TestSearch::()::test_baidu_search_case</td>
          <td> 百度搜索：pytest </td>
          <td class="col-duration">3.25</td></tr>
        <tr>
          <td class="extra" colspan="5">
            <div><div><img src="image/test_baidu.py_TestSearch_()_test_baidu_search_case.png" alt="screenshot" style="width:304px;height:228px;" onclick="window.open(this.src)" align="right"/></div></div>
            <div class="log">self = &lt;test_dir.test_baidu.TestSearch object at 0x106ded550&gt;<br/>browser = &lt;selenium.webdriver.chrome.webdriver.WebDriver (session=&quot;6c6dbcb178c61f65ab37831826682f88&quot;)&gt;<br/>base_url = &#x27;https://www.baidu.com&#x27;<br/><br/>    def test_baidu_search_case(self, browser, base_url):<br/>        &quot;&quot;&quot; 百度搜索：pytest &quot;&quot;&quot;<br/>        page = BaiduPage(browser)<br/>        page.get(base_url)<br/>        page.search_input.send_keys(&quot;pytest&quot;)<br/>        page.search_button.click()<br/>        sleep(2)<br/>&gt;       assert browser.title == &quot;pytest_百度搜索222&quot;<br/><span class="error">E       AssertionError: assert &#x27;pytest_百度搜索&#x27; == &#x27;pytest_百度搜索222&#x27;</span><br/><span class="error">E         - pytest_百度搜索</span><br/><span class="error">E         + pytest_百度搜索222</span><br/><span class="error">E         ?            +++</span><br/><br/>test_dir/test_baidu.py:19: AssertionError<br/></div></td></tr></tbody>
      <tbody class="rerun results-table-row">
        <tr>
          <td class="col-result">Rerun</td>
          <td class="col-time">2019-01-08 03:00:12.501661</td>
          <td class="col-name">test_dir/test_baidu.py::TestSearch::()::test_baidu_search_case</td>
          <td> 百度搜索：pytest </td>
          <td class="col-duration">2.32</td></tr>
        <tr>
          <td class="extra" colspan="5">
            <div><div><img src="image/test_baidu.py_TestSearch_()_test_baidu_search_case.png" alt="screenshot" style="width:304px;height:228px;" onclick="window.open(this.src)" align="right"/></div></div>
            <div class="log">self = &lt;test_dir.test_baidu.TestSearch object at 0x106f764e0&gt;<br/>browser = &lt;selenium.webdriver.chrome.webdriver.WebDriver (session=&quot;6c6dbcb178c61f65ab37831826682f88&quot;)&gt;<br/>base_url = &#x27;https://www.baidu.com&#x27;<br/><br/>    def test_baidu_search_case(self, browser, base_url):<br/>        &quot;&quot;&quot; 百度搜索：pytest &quot;&quot;&quot;<br/>        page = BaiduPage(browser)<br/>        page.get(base_url)<br/>        page.search_input.send_keys(&quot;pytest&quot;)<br/>        page.search_button.click()<br/>        sleep(2)<br/>&gt;       assert browser.title == &quot;pytest_百度搜索222&quot;<br/><span class="error">E       AssertionError: assert &#x27;pytest_百度搜索&#x27; == &#x27;pytest_百度搜索222&#x27;</span><br/><span class="error">E         - pytest_百度搜索</span><br/><span class="error">E         + pytest_百度搜索222</span><br/><span class="error">E         ?            +++</span><br/><br/>test_dir/test_baidu.py:19: AssertionError<br/></div></td></tr></tbody>
      <tbody class="rerun results-table-row">
        <tr>
          <td class="col-result">Rerun</td>
          <td class="col-time">2019-01-08 03:00:15.453310</td>
          <td class="col-name">test_dir/test_baidu.py::TestSearch::()::test_baidu_search_case</td>
          <td> 百度搜索：pytest </td>
          <td class="col-duration">2.32</td></tr>
        <tr>
          <td class="extra" colspan="5">
            <div><div><img src="image/test_baidu.py_TestSearch_()_test_baidu_search_case.png" alt="screenshot" style="width:304px;height:228px;" onclick="window.open(this.src)" align="right"/></div></div>
            <div class="log">self = &lt;test_dir.test_baidu.TestSearch object at 0x106f95080&gt;<br/>browser = &lt;selenium.webdriver.chrome.webdriver.WebDriver (session=&quot;6c6dbcb178c61f65ab37831826682f88&quot;)&gt;<br/>base_url = &#x27;https://www.baidu.com&#x27;<br/><br/>    def test_baidu_search_case(self, browser, base_url):<br/>        &quot;&quot;&quot; 百度搜索：pytest &quot;&quot;&quot;<br/>        page = BaiduPage(browser)<br/>        page.get(base_url)<br/>        page.search_input.send_keys(&quot;pytest&quot;)<br/>        page.search_button.click()<br/>        sleep(2)<br/>&gt;       assert browser.title == &quot;pytest_百度搜索222&quot;<br/><span class="error">E       AssertionError: assert &#x27;pytest_百度搜索&#x27; == &#x27;pytest_百度搜索222&#x27;</span><br/><span class="error">E         - pytest_百度搜索</span><br/><span class="error">E         + pytest_百度搜索222</span><br/><span class="error">E         ?            +++</span><br/><br/>test_dir/test_baidu.py:19: AssertionError<br/></div></td></tr></tbody>
      <tbody class="passed results-table-row">
        <tr>
          <td class="col-result">Passed</td>
          <td class="col-time">2019-01-08 03:00:20.722627</td>
          <td class="col-name">test_dir/test_baidu.py::TestSearch::()::test_baidu_search[case1]</td>
          <td>百度搜索 --参数化</td>
          <td class="col-duration">2.34</td></tr>
        <tr>
          <td class="extra" colspan="5">
            <div class="empty log">No log output captured.</div></td></tr></tbody>
      <tbody class="passed results-table-row">
        <tr>
          <td class="col-result">Passed</td>
          <td class="col-time">2019-01-08 03:00:23.092067</td>
          <td class="col-name">test_dir/test_baidu.py::TestSearch::()::test_baidu_search[case2]</td>
          <td>百度搜索 --参数化</td>
          <td class="col-duration">2.37</td></tr>
        <tr>
          <td class="extra" colspan="5">
            <div class="empty log">No log output captured.</div></td></tr></tbody>
      <tbody class="passed results-table-row">
        <tr>
          <td class="col-result">Passed</td>
          <td class="col-time">2019-01-08 03:00:25.433344</td>
          <td class="col-name">test_dir/test_baidu.py::TestSearch::()::test_baidu_search[case3]</td>
          <td>百度搜索 --参数化</td>
          <td class="col-duration">2.34</td></tr>
        <tr>
          <td class="extra" colspan="5">
            <div class="empty log">No log output captured.</div></td></tr></tbody>
      <tbody class="passed results-table-row">
        <tr>
          <td class="col-result">Passed</td>
          <td class="col-time">2019-01-08 03:00:28.259320</td>
          <td class="col-name">test_dir/test_baidu.py::TestSearchSettings::()::test_baidu_search_setting</td>
          <td>百度搜索设置</td>
          <td class="col-duration">2.52</td></tr>
        <tr>
          <td class="extra" colspan="5">
            <div class="empty log">No log output captured.</div></td></tr></tbody></table></body></html>